package com.sunline.poc.oozie.client;

import com.sunline.poc.oozie.config.ApplicationException;

import java.util.Properties;

public interface OozieClient {

    /**
     * 启动任务
     * @return
     */
    public String start(Properties properties) throws ApplicationException;

    /**
     * kill job
     * @param jobId
     * @return
     */
    public boolean kill(String jobId);

    /**
     * 查看job状态
     * @param jobId
     * @return
     */
     public String status(String jobId);

}
